package demo;

import java.util.List;

//进行测试
public class Main {
    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> ret = cardGame.buyCard();
        System.out.println("买牌：");
        System.out.println(ret);

        System.out.println("洗牌：");
        cardGame.shuffle(ret);
        System.out.println(ret);

        System.out.println("发牌：");
        List<List<Card>> hand = cardGame.getCard(ret);
        /*for (List<Card> cards : hand) {
            System.out.println(cards);
        }*/
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第" + (i + 1) + "个人的牌为：" + hand.get(i));
        }
        System.out.println("剩余的牌为：");
        System.out.println(ret);
    }
}
